-- GENERATED SPELL FOR [Scarlet Adept] --


function spell0_4296(pUnit, Event) --@Heal,Heal--
pUnit:FullCastSpellOnTarget(6063,pUnit)
pUnit:RegisterEvent('Sorts_4296', 3000, 1)
end

function spell1_4296(pUnit, Event) --@Holy Smite,n/a--
pUnit:FullCastSpellOnTarget(9734,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4296', 2500, 1)
end

function Sorts_4296(pUnit, Event)
local choix_sorts_4296 = math.random(0, 1)
if choix_sorts_4296 == 0 then
pUnit:RegisterEvent('spell0_4296', 1, 1)
end
if choix_sorts_4296 == 1 then
pUnit:RegisterEvent('spell1_4296', 1, 1)
end
end

function mob4296_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4296', math.random(1500, 3000), 1)
end

function mob4296_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4296_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4296_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4296, 1, 'mob4296_Action')
RegisterUnitEvent(4296, 2, 'mob4296_Leave')
RegisterUnitEvent(4296, 3, 'mob4296_Kill')
RegisterUnitEvent(4296, 4, 'mob4296_Die')
